import request from "@/utils/request"

export const getWarehousingEntryDetailsListApi = ()=>request.get(`/warehousing_entry_details/list`)

export const deleteWarehousingEntryDetailsApi = (id) => request.delete(`/warehousing_entry_details/${id}`)

export const addWarehousingEntryDetailsApi = (data) => request.post('/warehousing_entry_details', data)

// 新增批量更新状态的API
export const updateEntryDetailsStatusApi = (ids, status) => request.put(`/warehousing_entry_details?status=${status}`, ids)

export const getWarehousingEntryDetailsPageApi = (page,pageSize,status)=>request.get(`/warehousing_entry_details?page=${page}&pageSize=${pageSize}&status=${status}`)